# -*- coding: utf-8 -*-
# @Time: 2024/12/10 1:41
# @Author: foxhuty
# @File: os_notes.py


import os
import uuid
import sys
import re

out_dir = '/data/result'
filename = 'gaokao.xlsx'
# final_name=os.path.join(out_dir,filename)
final_name = out_dir + '/' + filename
print(final_name)
excel_name = uuid.uuid4().hex + '.xlsx'
print(excel_name)
my_uuid = str(uuid.uuid4()) + '.xlsx'
print(my_uuid)
print(uuid.uuid4())
print(sys.getrecursionlimit())
print(sys.version)
print(sys.path)
print(sys.argv)
print(sys.argv[0])
print(sys.platform)


def remove_spaces_between_chars(text):
    return re.sub(r'\s+', '', text)


txt = '  学          科  '
print(len(txt))
clean_txt = remove_spaces_between_chars(txt)
print(clean_txt)
print(len(clean_txt))
